<template>
  <div id="zffw">
    <div id="zffwbt">
      <h3>惠生活</h3>
    </div>
    <div>
      <img src="../../../../public/lifeimg/bnn1.png" alt="" class="bigtu" />
      <ul class="">
        <li v-for="(v, i) in shenghuo" :key="i">
          <img :src="v.imgUrl" alt="" />
          <div class="left">
            <h4>{{ v.title }}</h4>
            <span>{{ v.cont }}</span>
          </div>
        </li>
      </ul>
    </div>
    <div id="zffwbt">
      <h3>人气商户</h3>
    </div>
    <div>
      <img src="../../../../public/lifeimg/bnn.png" alt="" class="bigtu" />
    </div>
  </div>
</template>

<script>
export default {
  props: ["shenghuo"],
};
</script>

<style lang="less" scoped>
#zffw {
  border-top: 0.01rem solid #dddfe1;
  width: 92%;
  margin: auto;
  font-size: 0.12rem;
  margin-bottom: 0.2rem;
}
#zffwbt {
  display: flex;
  line-height: 0.3rem;
  justify-content: space-between;
  margin-top: 0.1rem;
}
ul {
  width: 100%;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
}
li {
  display: flex;
  justify-content: space-between;
  width: 45%;
  float: left;
  height: 0.6rem;
  margin-top: 0.1rem;
  overflow: hidden;
}
h3 {
  line-height: 0.3rem;
  font-size: 0.16rem;
}
h4 {
  line-height: 0.3rem;
  font-size: 0.14rem;
}
.bigtu {
  width: 100%;
  height: 0.87rem;
  margin: atuo;
}
img {
  width: 0.6rem;
  height: 0.6rem;
  // margin-top: 0.1rem;
}
li:nth-child(1) {
  color: #c95f83;
}
li:nth-child(2) {
  color: #4730ed;
}
li:nth-child(3) {
  color: #e47c4f;
}
li:nth-child(4) {
  color: #bd6181;
}
li span {
  color: #747675;
}
</style>